package com.ruoyi.resume.enums;

public enum TaskType {
    DELETE_TAG("DELETE_TAG"),        // 删除标签任务
    UPDATE_TAG("UPDATE_TAG");        // 更新标签任务

    private final String value;

    TaskType(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public static TaskType fromValue(String value) {
        for (TaskType taskType : values()) {
            if (taskType.getValue().equals(value)) {
                return taskType;
            }
        }
        throw new IllegalArgumentException("无效的任务类型: " + value);
    }
}

